<ul>
    <?php foreach($cat as $c): ?>
    <li><?php echo CHtml::link($c->name,Yii::app()->createUrl('product/index',array('cid'=>$c->id)))?></li>
    <?php endforeach; ?>
</ul>
<?php
